package com.zqy.common.util;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.sql.Connection;
import java.util.Properties;
public class ReadJDBC {
	private Connection conn;
	private Properties props;
	private String url;
	private String user;
	private String password;
	private String driver;

	public ReadJDBC() throws FileNotFoundException, IOException,
			ClassNotFoundException {
		props = new Properties();
		props.load(ReadJDBC.class.getClassLoader().getResourceAsStream(
				"jdbc.properties"));
		driver = props.getProperty("jdbc.driverClassName");
		url = props.getProperty("jdbc.url");
		user = props.getProperty("jdbc.username");
		password = props.getProperty("jdbc.password");
		Class.forName(driver);
		
	}

	

}